CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
PROJECT(policy_test)
CMAKE_POLICY(GET CMP0072 var)
MESSAGE("CMP0072 behavior is: ${var}")


if(POLICY CMP0072)
    CMAKE_POLICY(SET CMP0072 NEW)
endif()
CMAKE_POLICY(GET CMP0072 var)
MESSAGE("Finally CMP0072 behavior is: ${var}")